import React from 'react'
import { useParams, useLocation } from 'react-router-dom'
export default function About() {
  // 接收路由参数
  const params = useParams()
  console.log(params)

  // 接收locaiton.state数据
  const location = useLocation()
  console.log(location)
  return (
    <div>
      <h1>关于页</h1>
    </div>
  )
}
